package club.xyes.zkh.ecommerce.commons.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * Create by 郭文梁 2019/4/17 0017 09:54
 * CommodityClassification
 * 商铺分类实体类
 *
 * @author 郭文梁
 * @data 2019/4/17 0017
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "t_commodity_classification")
public class CommodityClassification extends BaseEntity {
    /**
     * 商铺ID
     */
    @Column(name = "shop_id", length = 10, nullable = false)
    private Integer shopId;
    /**
     * 分类名称
     */
    @Column(name = "name", length = 100, nullable = false)
    private String name;
    /**
     * 排序依据
     */
    @Column(name = "order_num", length = 5)
    private Integer orderNum;
}
